package com.cn.dream_order_server.controller;

import com.cn.dream_order_server.client.ActivityServer;
import com.cn.dream_order_server.util.Test0009;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {


    @Autowired
    private Test0009 test;

    @RequestMapping("/paySuccess")
    public String paySuccess(){
        return "paySuccess";
    }





    @Autowired
    private ActivityServer activityServer;


    @RequestMapping(value = "/register")
    @ResponseBody
    public Object loginByPhone1( ){
        Object login = test.loginByPhone1("18702753118");
        System.out.println(login);
        return  login;
    }


    @RequestMapping(value = "/test0001")
    @ResponseBody
    public Object test0001( ){
        String killed = activityServer.getKilled(1613609612410880L);
        System.out.println(killed);
        return  killed;
    }


}
